package com.syp.auth.service.validator;

public enum SigninErrorEnum {

	usernameMustNotEmpty(SigninErrorTypeEnum.userError, "用户名不能为空"),
	passwordMustNotEmpty(SigninErrorTypeEnum.userError, "密码不能为空"),
	ivcMustNotEmpty(SigninErrorTypeEnum.userError, "验证码不能为空"),
	ivcExpired(SigninErrorTypeEnum.userError, "验证码已过期"),
	ivcUncheck(SigninErrorTypeEnum.userError, "验证码不正确"),
	usernameOrPasswordUncheck(SigninErrorTypeEnum.userError, "用户名或密码不正确"),
	tokenMustNotEmpty(SigninErrorTypeEnum.appError, "sid不能为空"),
	appMustNotEmpty(SigninErrorTypeEnum.appError, "app不能为空");

	private SigninErrorTypeEnum type;
	private String emsg;

	private SigninErrorEnum(SigninErrorTypeEnum type, String emsg) {
		this.type = type;
		this.emsg = emsg;
	}

	public SigninErrorTypeEnum getType() {
		return type;
	}

	public String getEmsg() {
		return emsg;
	}

}
